package demo03

/**
 * @author xiaoZhao
 * @date 2022/6/24
 * @describe while  do..while
 */
object Test05_while {
  def main(args: Array[String]): Unit = {
    // while
    var a =10;
    while (a >= 1){
      println("while:  "+a)
      a-=1
    }

  // do..while
    var b =0
    do {
      println("do while: "+b)
      b-=1
    }while(b>0)

    }
}
